<h1>Listing customers</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Initial balance</th>
    <th>Mobile</th>
    <th>Mobile1</th>
    <th>Address</th>
    <th>Others</th>
    <th></th>
    <th></th>
  </tr>

<% @customers.each do |customer| %>
  <tr>
    <td><%= customer.name %></td>
    <td><%= customer.initial_balance %></td>
    <td><%= customer.mobile %></td>
    <td><%= customer.mobile1 %></td>
    <td><%= customer.address %></td>
    <td><%= customer.others %></td>
    <td><%= link_to 'Show', customer %></td>
    <td><%= link_to 'Edit', edit_customer_path(customer) %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Customer', new_customer_path %>
